<div class="container-fluid">
  <div class="container login-container">
    <div class="content">
      <div>
        <p>欢迎注册！</p>
      </div>
      <div class="account-page">
        <form #form='ngForm' id="register-form" method="post" role="form" enctype="multipart/form-data" (ngSubmit)="onSubmit()">
          <div class="form-group">
            <input autofocus="autofocus"  class="form-control" id="username" name="username" placeholder="用户名" type="text" value="" required [(ngModel)]="name" #username="ngModel"/>
            <div [hidden]="username.valid || username.pristine" class="alert alert-danger">
              用户名是必填项
            </div>
          </div>
          <div class="form-group">
            <input class="form-control"  #pass="ngModel" id="Password" name="Password" placeholder="设置密码" type="password" value="" required [(ngModel)]="password" />
            <div [hidden]="pass.valid || pass.pristine" class="alert alert-danger">
              密码是必填项
            </div>
          </div>
          <button type="submit" class="btn btn-lg btn-primary btn-block login-button" id="signup" [disabled]="!form.form.valid">Sign Up</button>
        </form>
      </div>
    </div>
  </div>
</div>
{{password}}
